ComboView

open class ComboView : RelativeLayout, RevelControl, DownloadFeedTask2.OnCompleted, DownloadFileTask2.OnCompleted, PlayedHandler, ComboScrollView.OnScrollPositionListener

A custom view designed to display a combination of other views vertically within a scrollable container.

ComboView extends RelativeLayout and internally uses a ComboScrollView (a specialized ScrollView) to host a LinearLayout where child views are added. It provides optional up and down caret indicators for scrolling and implements various interfaces for integration with a playback system and data loading tasks.

It acts as a RevelControl for system integration, handles callbacks from DownloadFeedTask2 and DownloadFileTask2, manages PlayedListener notifications via PlayedHandler, and listens to scroll events from ComboScrollView.OnScrollPositionListener to manage caret visibility.

See also

ComboScrollView
PlayedHandler
DownloadFeedTask2.OnCompleted
DownloadFileTask2.OnCompleted

Constructors

Link copied to clipboard
constructor(context: Context, module: Module)
Constructs a new ComboView.

Functions

Link copied to clipboard
open fun addView(view: View)
Adds a child view to the internal LinearLayout.
open fun addView(view: View, width: Int, height: Int)
Adds a child view to the internal LinearLayout with specified width and height.
Link copied to clipboard
open fun dispose()
Performs cleanup operations for this view when it's being disposed of.
Link copied to clipboard
open fun getName(): String
Gets the unique name assigned to this control.
Link copied to clipboard
open fun getOptions(): Iterator<out Option>
Gets an iterator over the configuration s for this control.
Link copied to clipboard
open fun getPlaylist(): Playlist
Gets the associated with this control, if any.
Link copied to clipboard
Returns the internal ComboScrollView instance used by this view.
Link copied to clipboard
open fun getType(): ModuleType
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z-index (stacking order) of this control.
Link copied to clipboard
open fun initialize(module: Module)
Initializes the control with its associated module context.
Link copied to clipboard
open fun isAutoStart(): Boolean
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun isStarted(): Boolean
Checks if the control is currently in a started or active operational state.
Link copied to clipboard
open fun onBottom(flag: Boolean)
Callback method invoked by ComboScrollView when the scroll content reaches or leaves the bottom boundary.
Link copied to clipboard
open fun onDownloadFeedCompleted(feed: Feed)
Callback method invoked when a feed download operation completes.
Link copied to clipboard
open fun onDownloadFileCompleted(file: File)
Callback method invoked when a file download operation completes.
Link copied to clipboard
open fun onPositionChanged(pos: Int)
Callback method invoked when the scroll position of the internal ComboScrollView changes.
Link copied to clipboard
open fun onTop(flag: Boolean)
Callback method invoked by ComboScrollView when the scroll content reaches or leaves the top boundary.
Link copied to clipboard
open fun registerPlayedListener(listener: PlayedListener)
Registers a listener to be notified when a media item or content unit within this ComboView is considered "played".
Link copied to clipboard
open fun reset()
Resets the scroll position of the internal ComboScrollView to the top (0,0).
Link copied to clipboard
open fun setAutoStart(flag: Boolean)
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun setShowCarets(flag: Boolean)
Sets the visibility of the top and bottom scroll caret indicators.
Link copied to clipboard
open fun start()
Starts or resumes the active operation of this control.
Link copied to clipboard
open fun stop()
Stops or pauses the active operation of this control.